package com.mode.observer.pattern;

/**
 * @Description:
 * @Author: zyf
 * @Time: 2020/9/29 11:21
 */
public class ClientMain {
    public static void main(String[] args) {
        Subject subject = new RealSubject();
        Observer observer = new RealObject();
        subject.attach(observer);
        subject.notifyChanged();
    }
}
